package top.songxs.gmall.feign.product;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import top.songxs.gmall.common.result.Result;
import top.songxs.gmall.feign.product.fallback.SkuSaleValuesConcatFeignClientFallback;
import top.songxs.gmall.product.vo.AttrValuesVo;

import java.util.List;

@FeignClient(value = "service-product",fallback = SkuSaleValuesConcatFeignClientFallback.class)
public interface SkuSaleValuesConcatFeignClient {


    @GetMapping("api/inner/product/getSkuSaleValues/{skuId}")
    public Result<List<AttrValuesVo>> getSkuSaleValues(@PathVariable("skuId") Long skuId);
}
